    <%-- 
    Document   : list
    Created on : 2017-9-18, 17:39:52
    Author     : zhangwenbo
--%>


<%@page import="Model.Purchase.PurchaseListView"%>
<%@page import="Model.Purchase.PurchaseMaterielList"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Model.Purchase.PurchaseList"%>
<%@page import="Model.Purchase.PurchaseMaterielListView"%>
<%@page import="RssEasy.Core.HttpRequestHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    CookieHelper cookie = new CookieHelper(request, response);
    HttpRequestHelper hrh = new HttpRequestHelper(pageContext).request();
    PurchaseMaterielList pml = new PurchaseMaterielList(pageContext);
    PurchaseList pl = new PurchaseList(pageContext);
    PurchaseListView plv=new PurchaseListView(pageContext);
    plv.select("enterprise").where("id=?", hrh.get("id")).get_first_rows();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>询比价项目详情及报价</title>
        <meta http-equiv="X-UA -Compatible" content="IE=edge">
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css"/>
        <link href="/css/swfupload.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/head.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/footer.css" rel="stylesheet" type="text/css"/>
        <link href="/purchase/css/details.css" rel="stylesheet" type="text/css"/>
        <link href="/purchase/css/alert.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="caigouxm" myid="<%=plv.get("enterprise")%>">
        <%@include file="/inc/head.jsp"%>
        <h1 class="details_position w1000">当前位置：采购项目＞项目详情</h1>
        <div class="details_content w1000">
            <div class='purchase_details w1000'>
                <div class="details_title">
                    <%
                        pl.select("name,shijian,name,linkname,phone,enddt,summary,conditions,purchase_class,business_class").where("id=?", hrh.get("id")).get_first_rows();
                    %>
                    <h2><%=pl.get("name")%></h2>
                    <h3>发布时间&nbsp;<span rssdate="<%=pl.get("shijian")%>,yyyy-MM-dd hh:mm"></span></h3>
                </div>
                <div class="details_content1">
                    <h2>项目类别：<span purchase="<%=pl.get("purchase_class")%>"></span></h2>
                    <h2>产品类别：<span><%=pl.get("business_class")%></span></h2>
                    <h2>项目名称：<span><%=pl.get("name")%></span></h2>
                    <h2>联系人：<span><%=pl.get("linkname")%></span></h2>
                    <h2>联系电话：<span><%=pl.get("phone")%></span></h2>
                    <h3>截止时间：<span rssdate="<%=pl.get("enddt")%>,yyyy-MM-dd hh:mm"></span></h3>
                </div>
                <h2>项目简介：</h2>
                <p><%=pl.get("summary")%></p>
                <h2>供应商资格要求：</h2>
                <p class="details_p" name="<%=hrh.get("id")%>"><%=pl.get("conditions")%></p>
            </div>
            <div class='latest'>
                <h1>最新发布</h1>
                <ol>
                    <%
                        pl.pagesize = 10;
                        pl.select("id,name,shijian").where("state=1 and typid=1").get_page_desc("id");
                        while (pl.for_in_rows()) {
                    %>
                    <li><img src="/purchase/img/purchase_create_list1.jpg" alt=""/><a href='/purchase/details/<%=pl.get("id")%>' title="<%=pl.get("name")%>"><%=pl.get("name")%></a><span rssdate='<%=pl.get("shijian")%>,yyyy-MM-dd'></span></li>
                            <%
                                }
                            %>
                </ol> 
            </div>
            <div class='materiel_details w1000'>
                <div class="tabletop">详细参数:</div>
                <table id="table" class="tc cellbor">
                    <thead>
                        <tr>
                            <th class="th2 w50">序号</th>
                            <th class='w160'>物料名称</th>
                            <th class="w100">规格型号</th>
                            <th class="w70">数量</th>
                            <th class="w50">单位</th>
                            <th class="w100">到货日期</th>
                            <th class="w100">图片</th>
                            <th class="th7 w80">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <%
                            pml.select("materielname,model,amout,unit,attachurl,id,delivery_date").where("purchaseid=?", hrh.get("id")).get_page_asc("id");
                            int n = 1;
                            while (pml.for_in_rows()) {
                        %>
                        <tr>
                            <td><%=n%></td>
                            <td><%=pml.get("materielname")%></td>
                            <td><%=pml.get("model")%></td>
                            <td><%=pml.get("amout")%></td>
                            <td><%=pml.get("unit")%></td>
                            <td rssdate="<%=pml.get("delivery_date")%>,yyyy-MM-dd"></td>
                            <td><img src="/upfile/<%=pml.get("attachurl")%>"/></td>
                            <td><h1 markers="<%=pml.get("id")%>" value="<%=n%>">报价</h1></td>
                        </tr>
                        <tr class="offer<%=n%>" style="background:#f0f0f0;display: none;">
                            <td class="td4" colspan="7" style="height:72px;">
                                <div class="part1">报价单</div>
                                <div class="part2">不含税单价：<span></span>元</div>
                                <div class="part3">报价有效期：<span></span></div>
                                <div class="part4">地址：<span></span></div>
                                <div class="part5">总运费：<span></span>元</div>
                                <div class="part6">产品图片：<img src=""></div>
                                <div class="part7">税点：<span></span></div>
                            </td>
                            <td class="td5" style="height:72px;">删除</td>
                        </tr>
                        <%
                                n++;
                            }
                        %>
                    </tbody>
                </table>
                <h2>请对物料报价后再点击提交</h2>
                <h3>物料已报价，请删除后重新报价</h3>
                <img class="submit_title" src="/purchase/img/detalis_title.png" alt=""/>
                <img class="submit" src="/purchase/img/purchase_details_submit.png" alt=""/>
                <form id="form_submit" action="/purchase/details_back" method="get">
                    <input type="hidden" name="purchaseid" value="<%=hrh.get("id")%>"> 
                    <button type="button"><b>提交</b></button>
                </form>
                <p>版权声明：以上所展示信息由会员自行提供，内容的真实性、准确性和合法性由发布会员负责。企企通对此不承担任何责任<br>
                    友情提醒：为保证您能够顺利寻源，请在报名寻源项目前向发布寻源的机构或者代理人详细要求，具体要求及项目情况以发布寻源的机构或者代理人的解释为准。<br>
                    企企通客服：102-2630-2562<br>
                </p>
            </div>
        </div>
        <div class="background">
            <div class="offer">
                <div class="offer_top">
                    <h1></h1>
                    <h2>物料名称：</h2>
                    <h3>关闭<span>&nbsp;&Chi;</span></h3>
                </div>
                <table class="offer_left">
                    <tr>
                        <td class="tr w100">*报价有效期：</td>
                        <td class="td"><input type="text" id="enddt" class="Wdate" onFocus="WdatePicker({lang: 'zh-cn', dateFmt: 'yyyy-MM-dd'})" name='enddt' readonly placeholder="点击选择日期和时间">&nbsp;&nbsp;<label for="enddt"></label></td>
                    </tr>
                    <tr>
                        <td class="tr w100">*不含税单价：</td>
                        <td class="td"><input type="text" placeholder="元" id="price" maxlength="8">&nbsp;&nbsp;<label for="price"></label></td>
                    </tr>
                    <tr>
                        <td class="tr w100">*税点：</td>
                        <td class="td"><input type="text" id="taxpoint" maxlength="5">&nbsp;&nbsp;<label for="taxpoint"></label></td>
                    </tr>
                    <tr>
                        <td class="tr w100">*总运费：</td>
                        <td class="td"><input type="text"placeholder="元" id="freight" maxlength="8"><label for="freight"></label></td>
                    </tr>
                    <tr>
                        <td class="tr w100">地址：</td>
                        <td class="td"><input type="text" placeholder="如:广东省深圳市龙岗区" id="addr" maxlength="20"><label for="addr"></label></td>
                    </tr>
                </table>
                <table class="offer_right">     
                    <tr class="tr1">
                        <td class="tr w70">是否现货：</td>
                        <td class="td td3"><label><input type="radio" name="spotgoods" value="1" checked="checked">是</label>
                            <label><input type="radio" name="spotgoods" value="0">否</label></td>
                    </tr>
                    <tr class="tr2">
                        <td class="w70 td2">产品图片：</td>
                        <td class="td">
                            <div class="imgupload">
                                <ul id="icourlwrap" class="swfuploadwrap">
                                    <li><div class="swfuploadimg"><div><img src="/img/white.gif"></div></div></li>
                                </ul>
                                <div>
                                    <span swfupload="icourlswf" config="{multimode:0,fileType: [['图形图像(*.jpg;*.png;*jpeg;*gif)','*.jpg;*.png;*jpeg']]}"></span>
                                </div>
                            </div>
                            <input type="hidden" name="icourl" value=""  maxlength="60"/>
                        </td>
                    </tr>
                </table>
                <h5>注：带“*”号为必填项</h5>
                <h6>完成</h6>
            </div>     
        </div>
        <%@include file="/inc/footer.jsp"%>
        <%@include file="/inc/js_all.html" %>
        <script src="/purchase/js/alert.js" type="text/javascript"></script>
        <script src="/purchase/js/details.js" type="text/javascript"></script>
        <script src="/purchase/js/offer_upload.js" type="text/javascript"></script>
        <script src="/purchase/js/dictdata.js" type="text/javascript"></script>
        <script src="/wdatepicker/WdatePicker.js" type="text/javascript"></script>
    </body>
</html>
